import Vue from 'vue';
import App from './App';
import store from './store/store.js';
import './uni.promisify.adaptor';
// 封装的网络请求
import 'utils/http.js';

// uni.showToast
uni.$showToast = (title = '获取数据失败', duration = 1500) => {
  uni.showToast({
    title,
    duration,
    icon: 'none'
  });
};
Vue.config.productionTip = false;
App.mpType = 'app';

const app = new Vue({
  ...App,
  // 注入 store
  store
});
app.$mount();
